package systemServer.reproduction;
 
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

import javax.jdo.JDOHelper;
import javax.jdo.PersistenceManager;
import javax.jdo.PersistenceManagerFactory;
import javax.jdo.Query;
import javax.jdo.Transaction;

import dao.SongDAO;

import systemServer.members.FindMember;
import systemServer.members.Member;
//TODO JDO
public class FindSong {
	
	public static Song getSong (int id){
		 return SongDAO.getInstance().getSong(id);
	    
	}

	public static List<Song> getArtistSongs (String artist){
	     return SongDAO.getInstance().getArtistSongs(artist);
	}
	
	
	public static void main (String [] args){
	
		List<Song> list = FindSong.getArtistSongs("John Lennon");
		System.out.println(list.size()+ "  "+ list.get(0));
	}
}
